import {Route, Switch} from 'react-router-dom'
import './App.css'
import 'antd/dist/antd.css'
import MyMenu from './components/MyMenu'
import Home from './pages/Home'
import Count from './pages/Count'
import Todo from './pages/Todo'

function App() {
  return (
    <div className="App">
      <MyMenu />
      <div className="content">
        <Switch>
          <Route path="/home" component={Home} />
          <Route path="/count" component={Count} />
          <Route path="/todo" component={Todo} />
        </Switch>
      </div>
    </div>
  );
}

export default App
